package com.cryptoneedle.garden.api;

import com.bubbles.engine.common.core.result.Result;
import com.cryptoneedle.garden.service.garden.sync.SyncDorisService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>description:  </p>
 *
 * @author CryptoNeedle
 * @date 2025-11-13
 */
@RestController
@RequestMapping("/sync")
public class SyncController {

    @Resource
    private SyncDorisService syncDorisService;

    @PostMapping("/garden/doris")
    public Result<?> syncDoris() {
        syncDorisService.syncDoris();
        return Result.success();
    }
}